//java-tutorial.org
import java.awt.event.*;


public class Control {
	public Control(){
		View v1 = new View();
		v1.b.b1.addActionListener(new HandlerButton1());
	}
	 
	class HandlerButton1 implements ActionListener{
		public void actionPerformed(ActionEvent evt) {
			//System.out.println("Button1 gedrückt");
			
			new Mythread().threadHandler();
		}
	}
	
	public static void main(String argc[]) throws InterruptedException {
		
		new Control();
		
		//Mythread mt = new Mythread();
		//mt.threadHandler(50000, 101, 0, false);
		System.out.println("Programm exit Success!");
	}
}